{extend name="main/index" /}

{block name="main"}

<div class="content-page">
    <div class="content">

                <table class="table table-hover tb-info">
                    <tr>
                        <th class="col-md-1">ID</th>
                        <th class="col-md-2">NAME</th>
                        <th class="col-md-5">ROLE</th>
                        <th class="col-md-2">ZNAME</th>
                        <th class="col-md-7">ACTION</th>
                    </tr>
                    {volist name="data" id="v" }
                        <tr>
                            <td>{$v['id']}</td>
                            <td>{$v['username']}</td>
                            <td>
                                {volist name="$v.roles" id="role"}
                                <span style="color:#999">{$role.name}</span>
                                &nbsp;
                                {/volist}
                            </td>
                            <td>{$v['name']}</td>
                            <td>
                                <a href="{:url('admin/User/userdel',['id'=>$v['id']])}">删除</a>
                                <a href="{:url('admin/User/useredit',['id'=>$v['id']])}">修改</a>
                                <a href="{:url('admin/User/rolelist',['id'=>$v['id']])}">分配角色</a>
                            </td>
                        </tr>
                    {/volist}
                    <tr></tr>
                </table>

            </div>
        </div>
    </div>
</div>


{/block}
